<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <!-- v-for="value in obj" 遍历obj对象中的值value -->
    <ul>
      <li v-for="value in obj">{{value}}</li>
    </ul>

    <!-- v-for="(value,key) in obj" 遍历obj对象中的值value和键key -->
    <ul>
      <li v-for="(value,key) in obj">{{value}},{{key}}</li>
    </ul>

    <!-- v-for="(value, key, index) in obj" 遍历obj对象中的值value和键key和下标index(很少用) -->
    <ul>
      <li v-for="(value, key, index) in obj">{{value}}, {{key}}, {{index}}</li>
    </ul>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        obj: {
          name: "xiaoLam",
          age: 18,
          tall: 1.70
        }
      }
    })
  </script>
</body>

</html>